home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
ISSUE23
/
PZAZZDEM
/
PZAZZDEM.ZIP
/
PZDEMO
/
PZDBITBT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-03-03
|
2KB
|
72 lines
unit Pzdbitbt;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, PZBPanel, PZShaded, StdCtrls, PZLabel, PZSpButt,
Menus, Pzbitbtn;
type
TPZBitmapButtonForm = class(TForm)
HeaderPanel: TPZBitmapPanel;
PZShaded1: TPZShaded;
DescrPanel: TPZBitmapPanel;
PZLabel4: TPZLabel;
ResultsPanel: TPZBitmapPanel;
PZLabel5: TPZLabel;
PZLabel2: TPZLabel;
OutputPanel1: TPZBitmapPanel;
PZLabel1: TPZLabel;
ClickedLabel: TPZLabel;
OKButton: TPZBitmapButton;
CancelButton: TPZBitmapButton;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure FormDeactivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
PZBitmapButtonForm: TPZBitmapButtonForm;
implementation
Uses PZDMain;
{$R *.DFM}
procedure TPZBitmapButtonForm.FormCreate(Sender: TObject);
Var
w :Integer;
Begin
SetBounds(10,10,MainForm.ClientWidth-20,MainForm.ClientHeight-MainForm.MainPanel.Height-20);
HeaderPanel.Background.LoadBitmap('PZD_STONE');
DescrPanel.Background.LoadBitmap('PZD_STONE');
ResultsPanel.Background.LoadBitmap('PZD_STONE');
OutputPanel1.Background.LoadBitmap('PZD_STONE');
OKButton.LoadBitmap('PZD_MARBLE');
CancelButton.LoadBitmap('PZD_MARBLE');
w:=OKButton.Width+16+CancelButton.ClientWidth;
OKButton.Left:=(OutputPanel1.Width Div 2)-(w Div 2);
CancelButton.Left:=OKButton.Left+OKButton.Width+16;
End;
procedure TPZBitmapButtonForm.FormClose(Sender: TObject; var Action: TCloseAction);
Begin
Action:=caFree;
End;
procedure TPZBitmapButtonForm.FormDeactivate(Sender: TObject);
begin
Close;
end;
end.